/*
 * ========================================================
 * Copyright(c) 2014 杭州偶尔科技-版权所有
 * ========================================================
 * 本软件由杭州偶尔科技所有, 未经书面许可, 任何单位和个人不得以
 * 任何形式复制代码的部分或全部, 并以任何形式传播。
 * 公司网址
 * 
 * 			http://www.kkkd.com/
 * 
 * ========================================================
 */
package com.simon.mengkou.ui.dialog;

import com.ouertech.android.agm.lib.ui.base.BaseDialog;
import com.simon.mengkou.R;
import com.simon.mengkou.data.bean.base.Address;
import com.simon.mengkou.ui.activity.AddressManagerActivity;

/**
 * @author : Zhenshui.Xia
 * @since : 2016/4/12.
 * desc    : 删除购物车商品对话框
 */
public class DeleteProductDialog extends BaseDialog {
    private Address mAddress;
    private AddressManagerActivity mActivity;

    public DeleteProductDialog(AddressManagerActivity activity, Address address) {
        super(activity);
        this.mActivity = activity;
        this.mAddress = address;
    }

    public DeleteProductDialog(AddressManagerActivity activity, int theme, Address address){
        super(activity, theme);
        this.mActivity = activity;
        this.mAddress = address;
    }

    @Override
    protected void initLayout() {

    }

    @Override
    protected void initViews() {
        setMessage(R.string.cart_product_delete_tips);
        setDouble(R.string.common_confirm, R.string.common_cancel);
        setOnDoubleListener(new OnLeftListener() {

            @Override
            public void onLeft() {
                cancel();

            }
        }, new OnRightListener() {

            @Override
            public void onRight() {
                cancel();
            }
        });
    }

}
